#ifndef _FightSucceedScene_h__
#define _FightSucceedScene_h__

#include "Global.h"




#include "../item/Item.h"
#include "../BossIcon.h"

class FightFailedScene
	: public State
	, public cocos2d::extension::CCBMemberVariableAssigner
	, public cocos2d::extension::CCBSelectorResolver
	, public cocos2d::extension::CCNodeLoaderListener
{
public:
	CCB_STATIC_NEW_AUTORELEASE_OBJECT_WITH_INIT_METHOD(FightFailedScene, create);
	FightFailedScene();
	~FightFailedScene();

	virtual SEL_MenuHandler onResolveCCBCCMenuItemSelector(CCObject * pTarget, CCString * pSelectorName){return NULL;}
	virtual SEL_CCControlHandler onResolveCCBCCControlSelector(CCObject * pTarget, CCString * pSelectorName);
	virtual bool onAssignCCBMemberVariable(CCObject * pTarget, CCString * pMemberVariableName, CCNode * pNode);
	virtual void onNodeLoaded(CCNode * pNode, CCNodeLoader * pNodeLoader);

	bool init();
	void onEnter();
	void onExit();
	void refresh();

protected:

private:
	CCLabelTTF* mSelfAttack;
	CCLabelTTF* mSelfDefense;
	CCLabelTTF* mSelfLife;
	CCLabelTTF* mOtherAttack;
	CCLabelTTF* mOtherDefense;
	CCLabelTTF* mOtherLife;
	BossIcon* mBossIcon;
	void onReturnBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
	void onReturnListBtnClick(CCObject * pSender, CCControlEvent pCCControlEvent);
};
#endif // FightSucceedScene_h__
